package com.dreamwhale.machinery.goods.service;

import com.alipay.api.AlipayApiException;
import com.dreamwhale.machinery.config.DataResult;
import com.dreamwhale.machinery.goods.entity.YxStoreCart;
import com.dreamwhale.machinery.goods.entity.YxStoreOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dreamwhale.machinery.pay.weChat.utils.WxNotifyParam;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author Author
 * @since 2020-05-28
 */
public interface YxStoreOrderService extends IService<YxStoreOrder> {


    /**
     * @param : yxStoreCart 商品信息
     * @param : addId   收货id
     * @return :
     * @MethodName : generateOrder
     * @Description : 生成商品订单
     * @Author : DragonUncle
     * @Data : 9:37 2020/6/6
     */
    DataResult generateOrder(YxStoreCart yxStoreCart, Integer payType, Integer addId) throws AlipayApiException;

    /**
     * @param :       trolleyId 购物车id数组
     * @param :       addId 收货地址id
     * @param payType
     * @return :
     * @MethodName : generateTrolleyOrder
     * @Description : 生成购物车订单
     * @Author : DragonUncle
     * @Data : 9:36 2020/6/6
     */
    DataResult generateTrolleyOrder(String trolleyId, Integer payType, Integer addId) throws AlipayApiException;

    /**
     * 订单通用修改
     *
     * @return
     */
    int updateYxStoreOrders(YxStoreOrder yxStoreOrder);

    DataResult inquiryLogistics(String orderId);
}
